package com.qixiao.lib.generic.bean;

import com.qixiao.lib.generic.bean.Apple;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Test1 {
    public static void main(String[] args) {
        List<Apple> src = new ArrayList<>();
        src.add(new Apple(1));
        List<Apple> desc = new ArrayList<>();
        desc.add(new Apple(2));
        System.out.println(desc);
        Collections.copy(desc, src);
        System.out.println(desc);
    }

    public static void copy(List<Apple> desc, List<Apple> src) {
        Collections.copy(desc, src);
    }
}
